<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>生命周期</title>
    <!--    引入Vue-->
    <script src="../../static/js/vue.js"></script>
</head>
<body>
<!--装备好一个容器-->
<div id="root">
    <h2 v-pre>当前值{{n}}</h2>
    <h2>当前值{{n}}</h2>
    <button @click="add">点我+1</button>
    <button @click="destroy()">点我销毁</button>
</div>
</body>
</html>
<script src="index.js"></script>
